package cn.edu.xmu.javaee.chapter2.beandefinition;

public class PaymentService {
    private final AliPayAdaptor aliPayAdaptor;

    public PaymentService(AliPayAdaptor aliPayAdaptor) {
        this.aliPayAdaptor = aliPayAdaptor;
    }

    @Override
    public String toString() {
        return "PaymentService{" +
                "adaptor=" + aliPayAdaptor +
                '}';
    }
}
